package com.ithuaxin.method;

import java.util.Random;

public class Test9 {
    public static void main(String[] args) {
        int arr[] = {2,588,888,1000,10000};
        int temp;
        Random r = new Random();
        for (int i = 0; i < arr.length; i++) {
           int randomIndex = r.nextInt(arr.length);
            temp = arr[i];
            arr[i] = arr[randomIndex];
            arr[randomIndex] = temp;
        }
        for (int i = 0; i < arr.length; i++) {
            System.out.println(arr[i]+"的奖金被抽出");
        }
    }
}
